package com.rk.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rk.admin.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {


    /**
     * 添加用户
     * @param user
     * @return
     */
    int UserAdd(User user);

    /**
     * 通过uid查询用户
     * @param uid
     * @return
     */
    User queryById(int uid);

    /**
     * 通过uid修改用户
     * @param user
     * @return
     */
    int updatebyuid(User user);
}
